﻿using KinonekoSoftware.Extensions.Strings.SearchModels;

namespace KinonekoSoftware.Extensions.Strings.Core
{
    public interface ISearchPattern
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="glossary"></param>
        void Build(IGlossaryProvider glossary);
        
        /// <summary>
        /// 
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        IList<MatchResult> Match(string input);

        int Version { get; }
    }
}